/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "试模修模",TableName = "PROJ_MoldTrial",DetailTable =  new Type[] { typeof(PROJ_MoldTrialIssue)},DetailTableCnName = "问题")]
    public partial class PROJ_MoldTrial:BaseEntity
    {
        /// <summary>
       ///PROJ_MoldTrial_Id
       /// </summary>
       [Key]
       [Display(Name ="PROJ_MoldTrial_Id")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid PROJ_MoldTrial_Id { get; set; }

       /// <summary>
       ///任务
       /// </summary>
       [Display(Name ="任务")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string TaskTitle { get; set; }

       /// <summary>
       ///模具编码
       /// </summary>
       [Display(Name ="模具编码")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string MoldCode { get; set; }

       /// <summary>
       ///模具名称
       /// </summary>
       [Display(Name ="模具名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string MoldName { get; set; }

       /// <summary>
       ///试模结果
       /// </summary>
       [Display(Name ="试模结果")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string TrialResult { get; set; }

       /// <summary>
       ///试模日期
       /// </summary>
       [Display(Name ="试模日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? TrialDate { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="WorkerLevel")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string WorkerLevel { get; set; }

       /// <summary>
       ///描述
       /// </summary>
       [Display(Name ="描述")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Description { get; set; }

       /// <summary>
       ///状态
       /// </summary>
       [Display(Name ="状态")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string Status { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string CreateBy { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateOn { get; set; }

       /// <summary>
       ///更新人
       /// </summary>
       [Display(Name ="更新人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string UpdateBy { get; set; }

       /// <summary>
       ///更新时间
       /// </summary>
       [Display(Name ="更新时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? LastUpdateOn { get; set; }

       /// <summary>
       ///逻辑删除 0/不删除 1/已删除
       /// </summary>
       [Display(Name ="逻辑删除 0/不删除 1/已删除")]
       [Column(TypeName="bit")]
       [Editable(true)]
       public bool? IsDeleted { get; set; }

       [Display(Name ="问题")]
       [ForeignKey("PROJ_MoldTrial_Id")]
       public List<PROJ_MoldTrialIssue> PROJ_MoldTrialIssue { get; set; }

    }
}